<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>	
		<title>Reportes</title>
	
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">		
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<style type="text/css" media="all">
			@import url("css/maven-base.css");
			@import url("css/maven-theme.css");
			@import url("css/site.css");
			@import url("css/screen.css");
		</style>	
	</head>

<body class="composite">

	<!-- HEADER -->
	<jsp:include page="../inc/header.jsp" flush="true" />
	
		
	<!-- MENU DE NAVEGACION DE REPORTES -->
	<div id="leftColumn">
		<div id="navcolumn">
			<h5>Reportes</h5>
			
			<ul>
				<li> Reporte 1.
			</ul>
		</div>
	</div>

	<div style="text-align: center;">
	<display:table name="${requestScope.registros}" requestURI="${path}" uid="registro" pagesize="10">
		<display:column property="cliente.nombre" title="Cliente" group="1" sortable="true" />
		<display:column property="proyecto" title="Proyecto"  />
		<display:column property="usuario" title="Usuario"  />
		<display:column property="horasAprobadas" title="Horas" />
		<display:column title='<img src="css/images/icon-tick.png" title="Aprobada"/>/<img src="css/images/icon-cross.png" title="Rechazada"/>'>
			<c:choose>
				<c:when test="${registro.aprobacion}">
					<img src="css/images/icon-tick.png" title="Aprobada!" />
				</c:when>
				<c:otherwise>
					<img src="css/images/icon-cross.png" title="Rechazada"/>
				</c:otherwise>
			</c:choose>
		</display:column>
		<display:column title='<img src="css/images/icon-money_extra.png" title="Horas Extras" />/<img src="css/images/icon-money.png" title="Horas normales"/>'>
			<c:choose>
				<c:when test="${registro.horasExtras}">
					<img src="css/images/icon-money_extra.png" title="Horas Extras" />
				</c:when>
				<c:otherwise>
					<img src="css/images/icon-money.png" title="Horas normales"/>
				</c:otherwise>
			</c:choose>
		</display:column>
	</display:table>
	</div>
	<hr />
	
<%-- 	<display:table name="${requestScope.registros}">
	</display:table>
 --%>
</body>
</html>
